package com.prolestar.statistics.res;

import lombok.Data;

@Data
public class StaticsIndexRes {
	private String departId;

	private String departName;

	private long total = 0;

	/**
	 * 已分配
	 */
	private long sended = 0;

	/**
	 * 待签收
	 */
	private long needSign = 0;

	/**
	 * 待处理
	 */
	private long needDeal = 0;
	
	private long dealEd = 0;

	/**
	 * 新增数据
	 * @param r
	 */
	public void add(YuqingDealData r) {
		total++;
		if(r.getStatus() == 0) {
			sended++;
		} else if(r.getStatus() == 1) {
			needSign++;
		} else if(r.getStatus() == 2) {
			needDeal++;
		} else if(r.getStatus() == 3) {
			dealEd++;
		}
	}
}
